package cn.net.csit.platform_cloud.basicmodel.service.impl;

import cn.net.csit.platform_cloud.basicmodel.service.IBackupDataService;
import cn.net.csit.platform_cloud.basicmodel.service.IBasicObjOrganTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * @ClassName:
 * @Author:yanwenjuan
 * @Date:2019/4/2318:01
 * @Description:
 */
@Service
public class BasicObjOrganTypeServiceImpl implements IBasicObjOrganTypeService {
    @Autowired
    IBackupDataService backupDataService;

    @Override
    public List<Map<String, String>> getAllOrganType() {
        List<Map<String,String>> result = new ArrayList<>();
        StringBuilder sb = new StringBuilder();
        sb.append(" select type_code,type_name FROM basic_obj_organ_type ");
        result = backupDataService.customQueryItem(sb);
        return result;
    }
}
